/*

*** This do file creates the replication results for 

Do double taxation treaties increase foreign direct investment to developing countries?, Journal of Development Studies, 43 (8), 2007, pp. 1501-1519

Eric Neumayer (LSE)																			

Please report any errors to e.neumayer@lse.ac.uk

*/

use "Article for JDS (DTTs).dta", replace

* Table 1
quietly xi: xtreg flnusfdioutstockbea96dollarsnn dttdus bitdus   lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithunitedstatesd  wtomemberdummy polcon3 if inc_developing==1, fe
su flnusfdioutstockbea96dollarsnn flnusfdioutstockbeadevsharenoneg dttdus bitdus   lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithunitedstatesd  wtomemberdummy polcon3  if e(sample)
su flnusfdioutstockbea96dollarsnn flnusfdioutstockbeadevsharenoneg dttdus bitdus   lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithunitedstatesd  wtomemberdummy polcon3  if e(sample), detail
corr flnusfdioutstockbea96dollarsnn flnusfdioutstockbeadevsharenoneg dttdus bitdus   lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithunitedstatesd  wtomemberdummy polcon3  if e(sample)
quietly xi: xtreg flnfdiflow96dollars dttsumoecdweighted bitsumoecdweighted  lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithdevcountrydweighted   wtomemberdummy  polcon3 if inc_developing==1, fe
su flnfdistock96dollars flnfdistock96dollarssharedev flnfdiflow96dollars flnfdiflowsharetodevelopingnoneg dttsumoecdweighted bitsumoecdweighted  lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithdevcountrydweighted   wtomemberdummy  polcon3 if e(sample)
su flnfdistock96dollars flnfdistock96dollarssharedev flnfdiflow96dollars flnfdiflowsharetodevelopingnoneg dttsumoecdweighted bitsumoecdweighted  lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithdevcountrydweighted   wtomemberdummy  polcon3 if e(sample), detail
corr flnfdistock96dollars flnfdistock96dollarssharedev flnfdiflow96dollars flnfdiflowsharetodevelopingnoneg dttsumoecdweighted bitsumoecdweighted  lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithdevcountrydweighted   wtomemberdummy  polcon3 if e(sample)

 
* US FDI data
xi: xtreg flnusfdioutstockbea96dollarsnn dttdus bitdus   lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithunitedstatesd  wtomemberdummy polcon3 i.year if inc_developing==1, re robust
outreg using c:\table2, replace 3aster
quietly xi: xtreg flnusfdioutstockbea96dollarsnn dttdus bitdus   lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithunitedstatesd  wtomemberdummy polcon3 i.year if inc_developing==1, fe 
est store fixed
quietly xi: xtreg flnusfdioutstockbea96dollarsnn dttdus bitdus   lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithunitedstatesd  wtomemberdummy polcon3 i.year if inc_developing==1, re 
hausman fixed
xi: xtreg flnusfdioutstockbea96dollarsnn dttdus bitdus   lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithunitedstatesd  wtomemberdummy polcon3 i.year if inc_developing==1, fe robust
outreg using c:\table2, append 3aster
xi: xtreg  flnusfdioutstockbeadevsharenoneg dttdus bitdus   lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithunitedstatesd  wtomemberdummy polcon3 if inc_developing==1, re robust
outreg using c:\table2, append 3aster
quietly xi: xtreg flnusfdioutstockbeadevsharenoneg dttdus bitdus   lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithunitedstatesd  wtomemberdummy polcon3 if inc_developing==1, fe 
est store fixed
quietly xi: xtreg flnusfdioutstockbeadevsharenoneg dttdus bitdus   lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithunitedstatesd  wtomemberdummy polcon3 if inc_developing==1, re 
hausman fixed
xi: xtreg  flnusfdioutstockbeadevsharenoneg dttdus bitdus   lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithunitedstatesd  wtomemberdummy polcon3 if inc_developing==1, fe robust
outreg using c:\table2, append 3aster


* Non-dyadic FDI data stocks
xi: xtreg flnfdistock96dollars dttsumoecdweighted bitsumoecdweighted  lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithdevcountrydweighted   wtomemberdummy  polcon3 i.year if inc_developing==1, re robust
outreg using c:\table3, replace 3aster
quietly xi: xtreg flnfdistock96dollars dttsumoecdweighted bitsumoecdweighted  lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithdevcountrydweighted   wtomemberdummy  polcon3 i.year if inc_developing==1, fe 
est store fixed
quietly xi: xtreg flnfdistock96dollars dttsumoecdweighted bitsumoecdweighted  lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithdevcountrydweighted   wtomemberdummy  polcon3 i.year if inc_developing==1, re 
hausman fixed
xi: xtreg flnfdistock96dollars dttsumoecdweighted bitsumoecdweighted  lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithdevcountrydweighted   wtomemberdummy  polcon3 i.year if inc_developing==1, fe robust
outreg using c:\table3, append 3aster
xi: xtreg  flnfdistock96dollarssharedev dttsumoecdweighted bitsumoecdweighted  lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithdevcountrydweighted   wtomemberdummy  polcon3 if inc_developing==1, re robust
outreg using c:\table3, append 3aster
quietly xi: xtreg  flnfdistock96dollarssharedev dttsumoecdweighted bitsumoecdweighted  lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithdevcountrydweighted   wtomemberdummy  polcon3 if inc_developing==1, fe 
est store fixed
quietly xi: xtreg  flnfdistock96dollarssharedev dttsumoecdweighted bitsumoecdweighted  lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithdevcountrydweighted   wtomemberdummy  polcon3 if inc_developing==1, re 
hausman fixed
xi: xtreg  flnfdistock96dollarssharedev dttsumoecdweighted bitsumoecdweighted  lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithdevcountrydweighted   wtomemberdummy  polcon3 if inc_developing==1, fe robust
outreg using c:\table3, append 3aster

* Non-dyadic FDI data flows
xi: xtreg flnfdiflow96dollars dttsumoecdweighted bitsumoecdweighted  lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithdevcountrydweighted   wtomemberdummy  polcon3 i.year if inc_developing==1, fe robust
outreg using c:\table3, append 3aster
xi: xtreg flnfdiflowsharetodevelopingnoneg dttsumoecdweighted bitsumoecdweighted  lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithdevcountrydweighted   wtomemberdummy  polcon3 if inc_developing==1, fe robust
outreg using c:\table3, append 3aster

* US FDI data
xi: xtreg flnusfdioutstockbea96dollarsnn dttdus bitdus   lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithunitedstatesd  wtomemberdummy polcon3 i.year if inc_low==1, fe robust
outreg using c:\table4, replace 3aster
xi: xtreg flnusfdioutstockbea96dollarsnn dttdus bitdus   lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithunitedstatesd  wtomemberdummy polcon3 i.year if inc_middle==1, fe robust
outreg using c:\table4, append 3aster
xi: xtreg  flnusfdioutstockbeadevsharenoneg dttdus bitdus   lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithunitedstatesd  wtomemberdummy polcon3 if inc_low==1, fe robust
outreg using c:\table4, append 3aster
xi: xtreg  flnusfdioutstockbeadevsharenoneg dttdus bitdus   lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithunitedstatesd  wtomemberdummy polcon3 if inc_middle==1, fe robust
outreg using c:\table4, append 3aster


* Non-dyadic FDI data stocks
xi: xtreg flnfdistock96dollars dttsumoecdweighted bitsumoecdweighted  lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithdevcountrydweighted wtomemberdummy  polcon3 i.year if inc_low==1, fe robust
outreg using c:\table5, replace 3aster
xi: xtreg flnfdistock96dollars dttsumoecdweighted bitsumoecdweighted  lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithdevcountrydweighted wtomemberdummy  polcon3 i.year if inc_middle==1, fe robust
outreg using c:\table5, append 3aster
xi: xtreg  flnfdistock96dollarssharedev dttsumoecdweighted bitsumoecdweighted  lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithdevcountrydweighted wtomemberdummy  polcon3 if inc_low==1, fe robust
outreg using c:\table5, append 3aster
xi: xtreg  flnfdistock96dollarssharedev dttsumoecdweighted bitsumoecdweighted  lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithdevcountrydweighted wtomemberdummy  polcon3 if inc_middle==1, fe robust
outreg using c:\table5, append 3aster

* Non-dyadic FDI data flows
xi: xtreg flnfdiflow96dollars dttsumoecdweighted bitsumoecdweighted  lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithdevcountrydweighted wtomemberdummy  polcon3 i.year if inc_low==1, fe robust
outreg using c:\table5, append 3aster
xi: xtreg flnfdiflow96dollars dttsumoecdweighted bitsumoecdweighted  lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithdevcountrydweighted wtomemberdummy  polcon3 i.year if inc_middle==1, fe robust
outreg using c:\table5, append 3aster
xi: xtreg flnfdiflowsharetodevelopingnoneg dttsumoecdweighted bitsumoecdweighted  lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithdevcountrydweighted wtomemberdummy  polcon3 if inc_low==1, fe robust
outreg using c:\table5, append 3aster
xi: xtreg flnfdiflowsharetodevelopingnoneg dttsumoecdweighted bitsumoecdweighted  lnrgdpch lnpop  econgrowth  inflation resourcedepletion agreementwithdevcountrydweighted wtomemberdummy  polcon3 if inc_middle==1, fe robust
outreg using c:\table5, append 3aster



